package com.eic.framework.spring;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextClosedEvent;

/**
 * 监听
 * @author guochun
 */
public class AppClosedEventListener implements ApplicationListener<ContextClosedEvent>{
	private Logger logger= LoggerFactory.getLogger(this.getClass());
	@Override
	public void onApplicationEvent(ContextClosedEvent event) {
		logger.info("应用上下文已关闭");
	}
}
